package com.zhou.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @Description : 出入库详情
 * @Author : zyy
 * @Date: 2024/8/22  14:57
 */
@Data
@Schema(name = "出入库详情", description = "出入库详情实体类")
public class Inventory {
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    @Schema(name = "id", type = "string")
    private String id;

    @TableField("warehouse_id")
    @Schema(name = "仓库id", type = "string")
    private String warehouseId;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @Schema(name = "创建时间", type = "date")
    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @Schema(name = "更新时间", type = "date")
    private Date updateTime;

    @TableField("del_flag")
    @Schema(name = "是否删除", type = "string")
    private String delFlag;

    @TableField("inventory_status")
    @Schema(name = "出入库状态", type = "string")
    private String inventoryStatus;

    @TableField("status")
    @Schema(name = "状态", type = "string")
    private String status;

    @TableField("counts")
    @Schema(name = "数量", type = "int")
    private Integer counts;

    @TableField("audit_status")
    @Schema(name = "审核状态 0待审核 1已审核 2审核失败", type = "string")
    private String auditStatus;

    @TableField("remark")
    @Schema(name = "备注", type = "string")
    private String remark;

    @TableField("reviewer")
    @Schema(name = "审核人", type = "string")
    private String reviewer;

    @TableField("reviewer_time")
    @Schema(name = "审核时间", type = "date")
    private Date reviewerTime;

    @TableField("operator")
    @Schema(name = "操作人", type = "string")
    private String operator;
}
